<?php
session_start();
include "Includes/solotrn_sesion.php";
include "Includes/soloFun_Generales.php";

//$CboNodo = $_REQUEST["CboNodo"];
$opcion = $_REQUEST["Opcion"];
switch($opcion) {
    case 2:
        $boton = "<input type='button' name='Submit' class='SoloStyle_Boton' value='Eliminar' onClick='EliminaPerfil();'>";
        $Titulo = "Eliminar Organizaci&oacute;n";
        $Oculto = "<input type='hidden' name='Opcion' value='2'>";
}
$oConexion = new Conexion($MIES["motor_base"], $MIES["db_usuario"], $MIES["db_password"],
        $MIES["basedatos"], $MIES["servidor"], $MIES["flags"], $MIES["encoding"]);
$strsql = "select id_tdl_datos, campo2 from TDL_DATOS ";
$strsql .= " where id_tdl_datos= {$_REQUEST["txtCodigo"]}";
SoloFun_ExecSqlFull($strsql, $arrOrganizacion, $oConexion);
?>
<html>
    <head>
        <title>SoloPortal - Eliminar Usuarios</title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        <link rel="stylesheet" href="SoloStyles/Solostyles.css" type="text/css">
        <SCRIPT type="text/JavaScript" src="Includes/Solofun_generales.js"></SCRIPT>
    </head>
    <body topmargin="0" leftmargin="0" onkeydown="checkKey();">

        <img src="templates/SoloTemplate_LogoCabecera.png" style="height: 50px"/>
        <p align="center" class="SoloStyle_TituloPaginas"><?php echo $Titulo;?></p>

        <form name="frm" action="organizaciones_Grabar.php?" method="POST">
            <?php echo $Oculto; ?>
            <table border="0" width="90%" align="center" cellpadding="2" cellspacing="1" bordercolor="#CCCCCC">
                <tr>
                    <td> <img src="iconos/soloico_eliminar.gif" border="1" alt="Eliminar Organizaci&oacute;n" style="cursor:hand" onClick="frm.submit();">
                        <img src="iconos/soloico_salir.gif" border="1" alt="Regresar" style="cursor:hand" onClick="window.opener.location.reload();window.close();" >
                    </td>
            </table>
            <table border="0" width="90%" bordercolor="#CCCCCC" cellpadding="2" cellspacing="1" align="center">
                <tr>
                    <td class="SoloStyle_Etiqueta" width="25%"><b>Id Orgnizaci&oacute;n</b></td>
                    <td class="SoloStyle_EtiquetaCajas" width="75%"><?php echo $arrOrganizacion[0][0];?>
                        <input type="hidden" name="txtCodigo"  maxlength="8" size="12" value="<?php echo $arrOrganizacion[0][0]; ?>" class="SoloStyle_Texto" readonly="true">

                    </td>
                </tr>
                <tr>
                    <td class="SoloStyle_Etiqueta"><b>Nombre</b> </td>
                    <td class="SoloStyle_EtiquetaCajas">
                        <input type="text" maxlength="50" size="43" name="ATxtNombre" class="SoloStyle_Texto" value="<?php echo $arrOrganizacion[0][1];?>" readonly>
                    </td>
                </tr>
            </table>
            <br>
        </form>
    </body>
</html>
<script type="text/JavaScript">

    function EliminaPerfil(){
        var truthBeTold = window.confirm(acentos("¿Está seguro que desea eliminar la organización seleccionada?"));
        if (truthBeTold) {
            frm.hidElimina.value='Y';
            frm.submit();
        }
    }
</script>
<?php
include "Includes/soloFun_ShowMessages.php";
?>
